lectures.alex.balgavy.eu

Lecture notes from university.
git clone git://git.alex.balgavy.eu/lectures.alex.balgavy.eu.git
Log | Files | Refs | Submodules

Architecture of the Web.html (1738B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3 <html><head><link rel="stylesheet" type="text/css" href="sitewide.css"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content="Evernote Mac 6.13.3 (455969)"/><meta name="created" content="2018-01-18 11:33:52 AM +0000"/><meta name="updated" content="2018-01-24 12:45:47 PM +0000"/><title>Architecture of the Web</title></head><body><div><ul><li>biggest info system ever</li><li>success because flexible &amp; incremental</li><ul><li>layers on top of already functional layers</li></ul></ul></div><div><br/></div><div>REST (Representational State Transfer)</div><div><ul><li>key principles</li><ul><li>all sources are resources, uniquely accessible via URI</li><li>clients &amp; servers need to know:</li></ul></ul></div><div><ol><ol><ol><li>URI of resource</li><li>Allowed actions (GET, POST, HEAD...)</li><li>Allowed representations (text/html or others)</li></ol></ol></ol></div><div><ul><ul><li>client doesn't need to kno how server generates representation</li><li>server doesn't need to know how client renders content</li><li>neither have to be aware of intermediate proxies</li><li>there is no HTTP communication state (response doesn’t depend on previous request, no side effects)</li><ul><li>delete/put are unsafe but idempotent</li><li>get and similar are safe</li><li>post needs warning, can happen multiple times</li></ul></ul><li>typical HTTP requests</li><ul><li>GET data</li><li>POST (e.g. submit form)</li><li>PUT (update info)</li><li>DELETE</li></ul></ul></div><div><br/></div><div><br/></div></body></html>